package gugudan;

public class GuGuDanMain {
	
	public static void main(String[] args) {
		
		int start = 5;
		int end = 9;
		int n = 3;
		
		for (int i = start; i < end + 1; i += n) {
			for (int j = 1; j < 10; j++) {
				for (int k = 0; k < n; k++) {
					if (i + k > end) {
						continue;
					}
					System.out.print((i+k)+" * "+j+" = "+((i+k)*j) + "\t");
				}
				System.out.println();
			}
			System.out.println();
		}
		
	}
	
}
